package summer_vacation.liqiqi.day8;

/**
 * Created by uw on 2015/8/27.
 */
public class jiechenghe {
    public static void main(String[] args){
        int jiecheng=1;
        int sum=0;
        for(int n=1;n<=10;n++){
            jiecheng=n*jiecheng;
            sum=sum+jiecheng;
        }
        System.out.println("1!+2!+3!+...10!="+sum);
    }
}
